package com.example.demo.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class TreeNode<T> implements Serializable {
    private static final long serialVersionUID  = 1L;

    private Integer id;

    private Integer pid;

    private List<T> children  = new ArrayList<>();

}
